import request from '@/utils/request'

// 查询领取优惠券记录列表
export function listAskCouponLog(query) {
  return request({
    url: '/system/askCouponLog/list',
    method: 'get',
    params: query
  })
}

// 查询领取优惠券记录详细
export function getAskCouponLog(id) {
  return request({
    url: '/system/askCouponLog/' + id,
    method: 'get'
  })
}

// 新增领取优惠券记录
export function addAskCouponLog(data) {
  return request({
    url: '/system/askCouponLog',
    method: 'post',
    data: data
  })
}

// 修改领取优惠券记录
export function updateAskCouponLog(data) {
  return request({
    url: '/system/askCouponLog',
    method: 'put',
    data: data
  })
}

// 删除领取优惠券记录
export function delAskCouponLog(id) {
  return request({
    url: '/system/askCouponLog/' + id,
    method: 'delete'
  })
}
